<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
    <link href="__CSS__/style.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.css" rel="stylesheet">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
        var indexUrl = "{:url('admin/index/index')}";
        var loginUrl = "{:url('admin/access/login')}";
        var retrieveUrl = "{:url('admin/access/retrieve')}";
    </script>
</head>

<body class="gray-bg">
    <div class="middle-box text-center loginscreen animated zoomInDown">
        <div>
            <div>
                <h4 class="logo-name">A</h4>
            </div>
            <h3>欢迎登陆</h3>
            <form class="m-t" role="form" id="loginForm">
                <div class="form-group">
                    <input type="text" class="form-control" name="username" id="username" placeholder="用户名">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="密码" name="password" id="password">
                </div>
                <button type="submit" id="loginBtn" class="btn btn-primary block full-width m-b">登 录</button>
                <p class="text-muted text-center">
                    <a href="{:url('index/index/index')}"><i class="fa fa-long-arrow-left"></i>返回前台</a>|<a data-toggle="modal"
                        href="#retrieveModal"><small>忘记密码了？</small></a>
                </p>
            </form>
        </div>
    </div>
    <div class="modal fade" id="retrieveModal" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <form class="form-horizontal" role="form" id="retrieveForm">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">找回密码</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">邮箱</label>
                            <div class="col-sm-10">
                                <input type="email" name="email" id="email" class="form-control" placeholder="请输入注册时填写的邮箱">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">点击刷新</label>
                            <div class="col-sm-10">
                                <img src="{:captcha_src()}" alt="captcha" width="50%" height="50%" onclick="this.src='{:captcha_src()}'">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">验证码</label>
                            <div class="col-sm-10">
                                <input type="text" name="captcha" id="captcha" class="form-control" placeholder="请输入验证码">
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="submit" class="btn btn-primary">找回密码</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.js"></script>
    <script src="__CUSTOME__/js/admin.common.js"></script>
</body>

</html>